package tbk

import (
	"sync"
)

// TaobaoTbkDgNewuserOrderSumData 结构体
type TaobaoTbkDgNewuserOrderSumData struct {
	// resultList
	Results []TaobaoTbkDgNewuserOrderSumData `json:"results,omitempty" xml:"results>taobao_tbk_dg_newuser_order_sum_data,omitempty"`
	// 活动ID
	ActivityId string `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 日期
	BizDate string `json:"biz_date,omitempty" xml:"biz_date,omitempty"`
	// 结算CPA 奖励金额：仅支持member 维度的统计
	AlipayUserCpaPreAmt string `json:"alipay_user_cpa_pre_amt,omitempty" xml:"alipay_user_cpa_pre_amt,omitempty"`
	// 当日激活且首购结算的CPA 金额：仅适用于八天乐，仅支持member维度的统计
	BindBuyUserCpaPreAmt string `json:"bind_buy_user_cpa_pre_amt,omitempty" xml:"bind_buy_user_cpa_pre_amt,omitempty"`
	// 渠道关系id
	RelationId string `json:"relation_id,omitempty" xml:"relation_id,omitempty"`
	// data
	Data *TaobaoTbkDgNewuserOrderSumData `json:"data,omitempty" xml:"data,omitempty"`
	// 页码
	PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"`
	// 每页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 新注册用户数
	RegUserCnt int64 `json:"reg_user_cnt,omitempty" xml:"reg_user_cnt,omitempty"`
	// 新激活用户数
	LoginUserCnt int64 `json:"login_user_cnt,omitempty" xml:"login_user_cnt,omitempty"`
	// 首购用户数
	AlipayUserCnt int64 `json:"alipay_user_cnt,omitempty" xml:"alipay_user_cnt,omitempty"`
	// 结算有效用户数
	RcvValidUserCnt int64 `json:"rcv_valid_user_cnt,omitempty" xml:"rcv_valid_user_cnt,omitempty"`
	// 确认收货用户数
	RcvUserCnt int64 `json:"rcv_user_cnt,omitempty" xml:"rcv_user_cnt,omitempty"`
	// 当日激活且首购的有效用户数：仅适用于八天乐，支持member，adzone维度的统计
	BindBuyValidUserCnt int64 `json:"bind_buy_valid_user_cnt,omitempty" xml:"bind_buy_valid_user_cnt,omitempty"`
	// bindCardValidUserCnt
	BindCardValidUserCnt int64 `json:"bind_card_valid_user_cnt,omitempty" xml:"bind_card_valid_user_cnt,omitempty"`
	// reBuyValidUserCnt
	ReBuyValidUserCnt int64 `json:"re_buy_valid_user_cnt,omitempty" xml:"re_buy_valid_user_cnt,omitempty"`
	// validNum
	ValidNum int64 `json:"valid_num,omitempty" xml:"valid_num,omitempty"`
	// 是否有下一页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
}

var poolTaobaoTbkDgNewuserOrderSumData = sync.Pool{
	New: func() any {
		return new(TaobaoTbkDgNewuserOrderSumData)
	},
}

// GetTaobaoTbkDgNewuserOrderSumData() 从对象池中获取TaobaoTbkDgNewuserOrderSumData
func GetTaobaoTbkDgNewuserOrderSumData() *TaobaoTbkDgNewuserOrderSumData {
	return poolTaobaoTbkDgNewuserOrderSumData.Get().(*TaobaoTbkDgNewuserOrderSumData)
}

// ReleaseTaobaoTbkDgNewuserOrderSumData 释放TaobaoTbkDgNewuserOrderSumData
func ReleaseTaobaoTbkDgNewuserOrderSumData(v *TaobaoTbkDgNewuserOrderSumData) {
	v.Results = v.Results[:0]
	v.ActivityId = ""
	v.BizDate = ""
	v.AlipayUserCpaPreAmt = ""
	v.BindBuyUserCpaPreAmt = ""
	v.RelationId = ""
	v.Data = nil
	v.PageNo = 0
	v.PageSize = 0
	v.RegUserCnt = 0
	v.LoginUserCnt = 0
	v.AlipayUserCnt = 0
	v.RcvValidUserCnt = 0
	v.RcvUserCnt = 0
	v.BindBuyValidUserCnt = 0
	v.BindCardValidUserCnt = 0
	v.ReBuyValidUserCnt = 0
	v.ValidNum = 0
	v.HasNext = false
	poolTaobaoTbkDgNewuserOrderSumData.Put(v)
}
